<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/8/8
 * Time: 15:47
 */

namespace App\Services\Dao;


use App\Model\Session;
use App\Model\User;

class UserDao
{
    public static function getUserWithAccountAndPwd($account,$pwd) {
        $user =
            User::where('user_account','=',$account)
            ->where('password','=',$pwd)
            ->where('is_delete','=',false)
            ->first();

        if($user) {
            return $user->toArray();
        }

        return [];
    }



}






